package com.jwb.demo003;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class SimpleBean {
    public SimpleBean(){
        System.out.println("SimpleBean的构造方法");
    }

    @PostConstruct
    public void init(){
        System.out.println("SimpleBean的初始化方法");
    }

    @PreDestroy
    public void destroy(){
        System.out.println("SimplleBean销毁前的方法");
    }
}
